package com.bluejazz.application.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

public class OrderDTO {
    private Integer orderId;

    @NotNull(message = "订单金额不能为空")
    private BigDecimal amount;

    @NotNull(message = "客户姓名不能为空")
    @Size(min = 2, message = "客户姓名必须大于等于两个字符")
    private String userName;

    public Integer getOrderId() {
        return orderId;
    }

    public OrderDTO setOrderId(Integer orderId) {
        this.orderId = orderId;
        return this;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public OrderDTO setAmount(BigDecimal amount) {
        this.amount = amount;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
